package com.sen.design.pattern.structural.adapter;

public class PowerAdapter implements DC5V{
   private AC220 ac220 =  new AC220();


    @Override
    public int outputDC5V() {
        int adapterInput = ac220.outputAC220V();

        // 模拟变压器
        int adapterOutPut = adapterInput / 44;
        System.out.println("使用电源适配器将220v转为5v");
        return adapterOutPut;
    }
}
